package com.shuai.service.impl;

import com.shuai.entity.File;
import com.shuai.entity.ProjectUserRelation;
import com.shuai.mapper.FileMapper;
import com.shuai.mapper.ProjectUserRelationMapper;
import com.shuai.service.FileService;
import com.shuai.service.ProjectUserRelationService;
import com.shuai.vo.ProjectUserRelationVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class ProjectUserRelationServiceImpl implements ProjectUserRelationService {

    @Autowired
    private ProjectUserRelationMapper projectUserRelationMapper;
    @Override
    public List<ProjectUserRelationVO> list(Long projectId) {
        List<ProjectUserRelationVO> relations  = projectUserRelationMapper.getByProjectId(projectId);
        relations.stream().forEach(relation -> {
            log.info("relation:{}",relation);
        });
        return relations;
    }
}
